<!doctype html>
<html lang="zh-cn">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, userDO-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Index</title>
	<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
</head>
<body>
<form action="/userDO/save">
	<input type="text" name="name">
	<input type="text" name="email">
	<input type="password" name="password">
	<button type="submit">提交</button>
</form>
<button type="button" onclick="findAll();">查询所有</button>

<script>
	function findAll() {
		$.ajax({
			url:     "user/findAll",
			success: function (res) {
				console.log(res);
			}
		});
	}

</script>

</body>
</html>